package com.yu.learn.configuration.server;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 企业微信配置
 * @author yushijun
 * @date 2018/5/9
 */
@Component
public class WxNoticeServer {

    /**
     * Server host
     */
    @Value("${server.wx.notice.url}")
    private String serverUrl;


    //发送应用通知接口
    public String getWxAppNoticeSendUrl() {
        return serverUrl + "/rptbackend/web/v1/sms/sendWorkWXMessage";
    }

}
